package ${package.Service};

import com.github.pagehelper.PageInfo;
import ${package.Entity}.${entity};
import ${cfg.reqPackage}.${cfg.addReqName};
import ${cfg.reqPackage}.${cfg.deleteReqName};
import ${cfg.reqPackage}.${cfg.editReqName};
import ${cfg.reqPackage}.${cfg.getListReqName};
import ${cfg.reqPackage}.${cfg.getInfoReqName};
import ${cfg.resPackage}.BaseOperationRes;

/**
 * ${table.comment!} 服务接口
 *
 * @author ${author}
 * @since ${date}
 */
<#--获取主键字段-->
<#list table.fields as field>
    <#if field.keyFlag>
        <#assign primaryKey = field>
    </#if>
</#list>

public interface ${table.serviceName} {

    PageInfo<${entity}> getPaged${cfg.entityName}List(${cfg.getListReqName} req);

    ${entity} get${cfg.entityName}InfoById(${cfg.getInfoReqName} req);

    BaseOperationRes add${cfg.entityName}(${cfg.addReqName} req);

    BaseOperationRes edit${cfg.entityName}(${cfg.editReqName} req);

    BaseOperationRes delete${cfg.entityName}(${cfg.deleteReqName} req);
}



